package com.yanxinim.cn.ui.me.redpacket;

import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.TextView;

import com.yanxinim.cn.R;
import com.yanxinim.cn.ui.base.BaseActivity;

/**
 * @ClassName UsersPayAgreementActivity
 * @Description 用户支付服务协议详情
 * @Author ChenXL
 * @Date 2021/4/20 14:20
 * @Version 1.0
 */
public class UsersPayAgreementActivity extends BaseActivity {

    TextView agreementDetailTV;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_users_pay_agreement);
        initActionBar();
        initView();
    }

    private void initActionBar() {
        getSupportActionBar().hide();
        findViewById(R.id.iv_title_left).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        TextView mTvTitle = (TextView) findViewById(R.id.tv_title_center);
        mTvTitle.setText(getString(R.string.agreement_title));
    }

    private void initView(){
        agreementDetailTV = findViewById(R.id.agreement_detail_tv);
        agreementDetailTV.setMovementMethod(ScrollingMovementMethod.getInstance());
    }
}
